]> dgit.raspbian.org Git - gnome-shell.git/commit
inputMethod: Keep Capabilite.FOCUS before context.focus_in/focus_out
authorTakao Fujiwara <tfujiwar@redhat.com>
Wed, 1 Mar 2023 14:42:18 +0000 (23:42 +0900)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 8 Aug 2023 10:20:28 +0000 (10:20 +0000)
commit17d9ec5788fba48e2c1fd62dedf23097f829e811
tree7267bd3c036afd3a1f9400eb4b03253d88ed87dc
parent1cfaa2379d7bff7514d91860f3683bbbbe87a5f5
inputMethod: Keep Capabilite.FOCUS before context.focus_in/focus_out

If context.focus_out() is called *after* context.set_capabilities(0),
The FocusOut D-Bus method is ignored because of no FOCUS capability.
If context.focus_out() is called *before* context.set_capabilities(0),
The 0 capability is set to the next focused context and the
FocusIn D-Bus method is ignored because of no FOCUS capability.
So context.set_capabilities(0) should not be called.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6415
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2666>
js/misc/inputMethod.js